$(document).ready(function(){

	$("#dialog").dialog({
		minHeight: 300,
		minWidth: 350,
		modal: true ,
		resizable: false,
		autoOpen: false,
		title: 'this it a dialog',
		show: 'slide',
		hide: 'slide',
		buttons:{
			'close':function(){
			       $("#dialog").dialog("close");
			}
		}
	});
	
	//$("#dialog").dialog("destroy"); 
	
	$("#bt_open").click(function(){	
		$("#dialog").dialog("open");
	});
});